package main

import (
	"fmt"
	"strconv"
	"time"
)

func helloWorld() {
	for i := 1; i <= 10000; i++ {
		fmt.Println("helloWorld() hello world " + strconv.Itoa(i))
		time.Sleep(time.Second)
	}
}

func test() {
	defer func() {
		if err := recover(); err != nil {
			fmt.Printf("err=%v\n", err)
		}
	}()
	var m map[int]int
	m[9] = 0
}

func main() {

	go helloWorld()

	go test()

	for i := 1; i <= 10; i++ {
		fmt.Println("main() hello golang" + strconv.Itoa(i))
		time.Sleep(time.Second)
	}
}
